<template>
  <Table v-if="isFlage == 0" @getBlack="getShow"></Table>
  <DetAil v-else-if="isFlage == 2" :DataId="DataId" @getBlack="getShow"></DetAil>
  <DecLare v-else-if="isFlage == 3" :DataId="DataId" @getBlack="getShow"></DecLare>
  <ConLog v-else-if="isFlage == 4" :DataId="DataId" @getBlack="getShow"></ConLog>
</template>

<script setup>
  import Table from './model/table.vue';
  import DetAil from './model/detail.vue';
  import DecLare from './model/declare.vue';
  import ConLog from './model/ConLog.vue';
  import { ref } from 'vue';
  // 0 表格
  // 2 详情
  // 3 申报
  // 4 日志
  // 5 审核
  const DataId = ref();
  const isFlage = ref(0);
  function getShow(e) {
    console.log(e);
    isFlage.value = e.type;
    DataId.value = e.id;
  }
</script>

<style lang="scss" scoped></style>
